﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Windows.Threading;
using AppTouchScreen.Model;
using AppTouchScreen.ViewModels;

namespace AppTouchScreen.Views
{
    /// <summary>
    /// Interaktionslogik für Window1.xaml
    /// </summary>
    public partial class MainWindow : Window
    {


        public MainWindow()
        {
            InitializeComponent();
            //if (System.ComponentModel.DesignerProperties.GetIsInDesignMode(this))
            //{
            //    btnAddCategory.Visibility = Visibility.Visible;
            //    btnAddProduct.Visibility = Visibility.Visible;
            //    //AppTouchScreen.Helper.StoreHelper.Instance.StoreState = StoreState.Edit;
            //}


            //DispatcherTimer dt = new DispatcherTimer();
            //dt.Interval = new TimeSpan(0,0,4);
            //dt.Tick += (x, y) =>
            //               {
            //                   this.border.Width = 10;
            //                   this.border.Height = 10;
            //               };
            //dt.Start();

            // Button btn;
            //this.Visibility
            //ProductDataViewModel vm = (ProductDataViewModel)this.pdvProductView.FindResource("viewModel");
        }

        ///// <summary>
        ///// Only for test
        ///// </summary>
        ///// <param name="sender"></param>
        ///// <param name="e"></param>
        //private void btnTest_Click(object sender, RoutedEventArgs e)
        //{
        //    if (AppTouchScreen.Helper.StoreHelper.Instance.StoreState == StoreState.View)
        //    {
        //        AppTouchScreen.Helper.StoreHelper.Instance.StoreState = StoreState.Edit;
        //    }
        //    else
        //    {
        //        AppTouchScreen.Helper.StoreHelper.Instance.StoreState = StoreState.View;
        //    }
            
        //}

        //private void lbPath_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        //{

        //}
    }
}
